package bean;

/**
 * Created by Administrator on 2017/3/2.
 */

/**
 * 播放模式枚举
 */
public enum MusicPattern {

    cyclicPattern{
        public String getName() {return "循环播放";}
        public int getCode(){return 0;}
    },
    singlePattern{
        public String getName() {return "单曲循环";}
        public int getCode(){return 1;}
    },
    randomPattern{
        public String getName() {return "随机播放";}
        public int getCode(){return 2;}
    };
    public abstract String getName();
    public abstract int getCode();
}
